package com.etc.common.util.converter;

import org.apache.commons.beanutils.Converter;

import com.etc.common.util.StringUtil;


public class IntegerConverter implements Converter {

   

    @Override
    public Integer convert(Class type, Object value) {
        if(null==value||StringUtil.isEmpty(value.toString())){
            return null;
        }
        return Integer.parseInt(value.toString());
    }


}
